package jw.hospital.hosp.model.hospital;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jw.hospital.hosp.model.base.BaseMongoEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(description = "Hospital")
@Document(value = "Hospital")
public class Hospital extends BaseMongoEntity {

    private static final long serialVersionUID = 8549032353392124559L;
    @ApiModelProperty(value = "医院编号")
    @Indexed(unique = true) //唯一索引
    private String hoscode;

    @ApiModelProperty(value = "医院名称")
    @Indexed //普通索引
    private String hosname;

    @ApiModelProperty(value = "医院类型")
    private String hostype;

    @ApiModelProperty(value = "省code")
    private   String  provinceCode;

    @ApiModelProperty(value = "市code")
    private   String  cityCode;

    @ApiModelProperty(value = "区code")
    private   String  districtCode;

    @ApiModelProperty(value = "地址")
    private   String  address;

    @ApiModelProperty(value = "医院logo")
    private   String  logoData;

    @ApiModelProperty(value = "医院简介")
    private   String  intro;

    @ApiModelProperty(value = "坐车路线")
    private   String  route;

    @ApiModelProperty(value = "状态 0：未上线 1：已上线")
    private   String  status;

    @ApiModelProperty(value = "预约规则")
    private   String  bookingRule;

    @ApiModelProperty(value = "医院类型")
    private   String  hoseType;


}
